/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  color: #4a4a4a;
  background-color: #fafbfc;
  font-family: sans-serif;
  font-weight: 400;
  font-size: 0.85em;
  overflow: hidden;
}

a {
  color: #8085C1;
  text-decoration: none;
  border: none;
  font-weight: bold;
}

a img {
  outline: none;
}

a:hover {
  color: #555;
  border: none;
}

.separator {
  color: #555;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/
#logo {
  max-width: 128px;
  display: block;
  margin: auto;
}

.posts a {
  color: #444;
}

.posts a:hover {
  color: #777;
}

.posts-list {
  list-style-type: none;
}

.posts-list li {
  line-height: 1.25em;
}

.posts-list.nodate {
  border-bottom: 1px solid #e7e7e7;
}

.posts-list.nodate, .posts-list.nodate li {
  margin-bottom: 1.25em;
}

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  display: grid;
  grid-template-columns:  25% 1fr;
}

.title {
  display: inline-block;
  text-align: center;
  line-height: 25px;
}

.tagline {
  width: 100%;
  color: #787878;
  font-weight: 600;
  text-align: center;
  margin-top: 0.5em;
  display: block;
}

.posts {
  border-top: 1px solid #e7e7e7;
  margin-top: 1em;
  padding-top: 1.5em;
  padding-bottom: 1.25em;
}

.footer {
  font-size: 0.95em;
  border-top: 1px solid #e7e7e7;
  padding-top: 1.25em;
  padding-bottom: 1.5em;
  overflow: hidden;
  float: center;
  text-align: center;
}

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

#post-info {
  margin-top: 2.5em;
}

#cover-photo-container,
#info-container {
  display: block;
}

#info-container {
  margin-top: 3em;
  max-width: 725px;
}

#title {
  color: #4a4a4a;
  margin-bottom: 0.35em;
  font-size: 2em;
  line-height: 40px;
}

.post {
  max-width: 725px;
  clear: both;
}

.post h1 {
  margin-bottom: 0.75em;
}

.post h2, .post h3 {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
}

  .post.article h2 {
    margin-bottom: 0;
    margin-top: 5em;
  }
  .post.article h3 {
    margin-top: 0.25em;
    margin-left: 0.25em;
    color: #666;
    font-style: italic;
  }

.post a {
  white-space: nowrap;
}

.post a:hover {
  border: none;
}

.post img.fullwidth {
  width: 100%;
}

.post.article .source {
  width: 100%;
  font-size: 0.75em;
  padding: 0.25em 0.75em;
  display: inline-block;
  border: solid 1px #aaa;
  background-color: #ffffe0;
  color: #666;
  font-style: italic;
}

/* standard */
.post pre {
  /* border: 1px solid #ddd;
  background-color: #eef;
  padding: .5em;
  margin-bottom: 1.45em; */
}

.post p, .post ul, .post ol li {
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.5em;
}

.post p {
  margin-bottom: 1.45em;
}

.post iframe + p + h1, .post iframe + p + h2 {
  margin-top: 0;
  margin-bottom: 1em;
}

.post ul, .post ol {
  margin-left: 2.35em;
  margin-bottom: 1.25em;
}

.post ol li {
  margin-bottom: 0.25em;
}

.post code {
  border: 1px solid #ddd;
  background-color: #eef;
}

.post pre code {
  border: none;
  line-height: 1.5em;
  /* font-size: 16px; */
}

.post pre code table, .post pre code td {
  border: none !important;
  margin: 0 !important;
}

.post img.left {
  float: left;
  padding-right: 1em;
}

/* terminal */
.post pre.terminal {
  border: 1px solid #000;
  background-color: #333;
  color: #FFF;
}

.post pre.terminal code {
  background-color: #333;
}

.post table {
    margin-bottom: 1.45em;
}

.post table,
.post th,
.post td {
    border: 1px solid #e7e7e7;
    border-collapse: collapse;
}

.post th,
.post td {
    padding: 0.25em 1em;
}

.post table tr:nth-child(odd) {
    background-color: #fff;
}

.post pre code table tr:nth-child(2n+1)
{
  background: none !important;
}

.post table th {
    font-weight: bold;
    background-color: #e7e7e7;
}

.post i.cc {
    font-size: 2em;
}

.post p sup {
  font-size: 0.6em;
  vertical-align: top;
  position: relative;
  top: -0.6em;
}

.post p sup a {
  font-weight: normal;
}

/*****************************************************************************/
/*
/* Category / YouTube Page
/*
/*****************************************************************************/

.categorypage #title, .categorypage .description {
  margin-bottom: 1em;
}

.categorypage a {
  white-space: normal;
  color: #4a4a4a;
}

.categorypage p {
  margin-bottom: 0;
}

.categorypage a:hover {
  color: #8085c1;
}

.categorypage .post {
  border-top: 1px solid #e7e7e7;
  padding-top: 2em;
}

.categorypage .post img {
  max-width: 100%;
}

.categorypage .post-excerpt h2 {
  display: none;
}

.categorypage .post-meta {
  margin-bottom: 1.25em;
}

/*****************************************************************************/
/*
/* Sidebar and Content
/*
/*****************************************************************************/

.sidebar,
.content {
  max-height: 100vh;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #fafbfc;
}

.sidebar {
  grid-column: 1;
  grid-row: 1;
  padding-left: 10em;
  padding-right: 1em;
  border-right: 1px solid #e7e7e7;
}

.content {
  grid-column: 2;
  grid-row: 1;
  padding-left: 2.125em;
}

.header {
  text-align: center;
  font-size: 1.1em;
  margin-top: 2.5em;
}

.post-link {
  display: block;
  margin-bottom: 0.75em;
}

.post-link.hidefunction {
  font-weight: bold;
  margin-bottom: 1em;
}

.post-link.hidefunction a {
  font-weight: normal;
}

.post-link.nodate {
  display: none;
}

.post-title {
  font-weight: 600;
}

.post-date {
  color: #8a8a8a;
  font-family: Monaco, "Courier New", monospace;
  font-weight: 600;
  font-size: 0.65em;
  display: block;
  text-transform: uppercase;
}

#sidebar-button {
  height: intrinsic;
  cursor: pointer;
  display: none;
  padding: 15px 5px 0px 0px;
  margin-bottom: 10px;
  position: fixed;
  right: 0;
}

#sidebar-button:active,
#sidebar-button:hover {
  opacity: 0.7;
}

#sidebar .header-link-mobile-grouper {
  white-space: nowrap;
}

#sidebar .header-links {
  display: block;
}

#sidebar .header-links i {
  font-size: 1.8em;
  padding: 0.2em 0.2em 0 0.2em;
}

.fa-youtube {
  color: #ff0000;
}

.posts .fa-palette {
  color: #00ff00;
}

.post .fa-check {
  color: #00b600;
}

.post .fa-times {
  color: #b60000;
}

.fa-instagram {
  color: transparent;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  background: -webkit-radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  background-clip: text;
  -webkit-background-clip: text;
}

.fa-patreon {
  color: #f96854;
}

.fa-bluesky, .fa-bluesky, .posts .fa-chalkboard-teacher, .posts .fa-music, .posts .fa-shopping-basket {
  color: #00aced;
}

.posts .fa-envelope {
  color: #cccccc;
}

.posts .fa-portrait {
  color: #ef978b;
}

.posts .fa-discord {
  color: #5865F2;
}

/*****************************************************************************/
/*
/* Colophon
/*
/*****************************************************************************/

.colophon {
  margin-top: 1.5em;
  margin-bottom: 1.45em;
  border-top: 1px dotted #e7e7e7;
}

.colophon p {
  margin-top: 1.25em;
  font-size: 0.95em;
  color: #777;
}

.colophon .navlink a {
  text-transform: capitalize;
}

blockquote {
  font-style: italic;
  font-weight: bold;
}

/* Responsive YouTube iframe */
.video-container {
  overflow: hidden;
  position: relative;
  width:100%;
}

.video-container::after {
  padding-top: 56.25%;
  display: block;
  content: '';
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}